php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#137543 - 07/05/01 11:05 PM [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
What it does is pull UBB's header and footer into any SSI-enabled page. The header includes the Style Templates Header & Header Insert field, as well as the UBB logo and link line. The footer includes all the copyright stuff and the Style Templates footer field. This allows you to integrate your site pages into your UBB, so if you want to keep the whole site looking the same, you only have to edit one place (the UBB control panel) instead of the cpanel and all your other pages.

It was originally created with the use of Compact Headers in mind, which is why it references the $standard_title_table (logo image and link line) variable... but because most people don't use that, the primary version is for just the standard (non-Compact) UBB headers. (Note: the standard version hasn't really been tested very well, because I don't have a UBB that doesn't have Compact Headers on it. So please report any bugs you find.)

This is a really simple mod... It's pretty minimalist, and doesn't really use any original code. So I'm sure I'll get chewed out by some of the more experienced hackers. But hey, I figure some people might be able to use it.

The hack works perfectly on my site. But that is an admittedly limited resource for testing. So please report back any bugs you find with either the standard or compact version. And be sure to read the readme!!!

7.8.01 - Updated to v0.9b. Non hard-coded Who's Online implementation. And better Perl syntax. Thanks a lot to LK and MasterMind for their help!!

Hope you like! smile

Click here to download .

Click here for a demo .

---Skorpion

[color:#000000" SIZE="1][ July 08, 2001 07:42 PM: Message edited by: Skorpion ][/color]
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#137544 - 07/06/01 12:57 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
nice skorp.. is this your first "code hack"? congrats smile
_________________________
- Allen wavey
- What Drives You?

Top
#137545 - 07/06/01 08:38 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Adam_G Offline
Junior Member

Registered: 07/04/01
Posts: 9
wow, nice hack!

Top
#137546 - 07/06/01 08:54 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Greg Hard Offline
Member

Registered: 02/21/00
Posts: 5533
Loc: My Room
Hey, cool! Nice job Skorp!

Top
#137547 - 07/06/01 09:27 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Wanted Offline
Member

Registered: 07/18/00
Posts: 127
Loc: Jeddah - Saudi Arabia
VERY NICE ,,

but it will be more useful if you can make it required login before viewing the shtml files

Top
#137548 - 07/06/01 01:22 PM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Fuzion Offline
Member

Registered: 11/22/00
Posts: 717
Loc: Arkansas
Hey,
For some reason it is not working on my site. frown
Here is what I have <!--#include virtual="/home/gamerzpa/public_html/cgi/ultimatebb.cgi?ubb=header" --> and I tried the exec one, and it did not work either. Can someone help me out here? http://www.gamerzparadize.com/newlayout.shtml That is the url.

Top
#137549 - 07/06/01 01:30 PM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Try /cgi/ultimatebb.cgi?ubb=header
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#137550 - 07/07/01 12:48 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
Glad everyone likes it.

I updated to v0.9a. See the original topic for details on that.

To upgrade, upload ubb_ssi.cgi to your CGI directory. Then delete ubb_header.cgi and ubb_footer.cgi, as they are no longer needed. Then redo the ultimatebb.cgi hacking with the new version (in the readme). The template files do not need to be changed.

---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#137551 - 07/07/01 01:14 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Tech-Ni-Kal Offline
Member

Registered: 05/23/01
Posts: 2685
Loc: » Ü § Ĺ «
Very Nice Skorp! I would have to say this is really kewl!

Top
#137552 - 07/07/01 03:24 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Travis Offline
Kahuna

Registered: 08/25/00
Posts: 1116
Loc: Virginia | Xtreme
VERY cool! Too bad I just finished our new design, or I would have added this in. Oh well, maybe I will for the next design. laugh
_________________________
.::First place winner in the June 2001 Member Spotlight ::.

Top
#137553 - 07/07/01 05:30 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Nice hack & instructions wink

I'm sure you already know it, but in step 5, I suggest you to use & lt; instead of < and then you don't have to use '*'.

Anyway, there are some problems with SHTML in my IIS, I'll probably fix them later...
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#137554 - 07/07/01 05:41 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Who's Online instructions are incorrect.

<FONT COLOR="#000000" SIZE="1">[ July 07, 2001 05:42 AM: Message edited by: LK ]</font>
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#137555 - 07/07/01 11:52 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
LK: I knew I *should* have used that code, but I couldn't remember it at the time. So I took the easy way out and threw in asterisks. smile I will change it asap.

Um, how do I fix the WoL instructions?

---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#137556 - 07/07/01 11:54 AM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
if ($ubb eq 'header') {
require "$vars_config{CGIPath}/ubb_ssi.cgi";
&header; exit;
} #end header

if ($ubb eq 'footer') {
require "$vars_config{CGIPath}/ubb_whos_online.cgi";
@people = &WriteUserSession("<A HREF="$vars_config{CGIURL}/ultimatebb.cgi">External Page</A>", $user_number, $invisible_pref);
require "$vars_config{CGIPath}/ubb_ssi.cgi";
&footer; exit;
} #end footer

<FONT COLOR="#000000" SIZE="1">[ July 07, 2001 11:58 AM: Message edited by: LK ]</font>
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#137557 - 07/07/01 12:37 PM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
Aight, fixed now. smile I'd forgotten about that backslash originally, so when I tried the hack on my site it caused errors. Fixed it on my site, and then went to add the backslash to the readme, and I guess I got it in the wrong place.

Thanks much! laugh

---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#137558 - 07/07/01 01:37 PM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
smile

BTW, the header is in ubb_ssi.cgi wink

<FONT COLOR="#000000" SIZE="1">[ July 07, 2001 01:40 PM: Message edited by: LK ]</font>
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#137559 - 07/07/01 02:25 PM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
Ack! This is why I stick to plain ol' template hacks usually! laugh

---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#137560 - 07/07/01 02:27 PM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
laugh
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#137561 - 07/07/01 07:13 PM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
I used the code lk gave in ultimatebb.cgi but when I call the file I get no who's online support

http://www.reeftalk.com/ubb.shtml
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#137562 - 07/07/01 07:35 PM Re: [6.0x] UBB Headers & Footers via SSI - version 0.9b Beta
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
I'm looking at your Who's Online right now, and it says you're viewing an external page, which is exactly what it's supposed to do.

---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
Page 1 of 3 1 2 3 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks